<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<%@ include file="../../common/headConfig.jsp"%>
	<link rel="stylesheet" href="css/vehicleGroup.css" />
	<script type="text/javascript" src="js/configManagement/certification.js"></script>
	
	<script>
		rivmsMenuActive = "rivms_ConfigManagement";
		 $(document).ready(function() {
		 	$( "button" ).button();
			ajaxFindCertificationSearchList();
		 });
	</script>
</head>
<body>
	<div id="rvimsContent">
		<%@ include file="../../common/header.jsp"%>
		<div id="rvimsMain">
			<div style="width: 100%;">
				<div class="crumbbox">当前位置：配置管理：&gt;&gt;<font color="red">检定信息管理</font></div>
				<div class="buttonbox">
					<button onclick="ajaxShowCertificationEdit(null);return false;">新增</button>
					<button onclick="ajaxDeleteCertificationById(null)">删除</button>
				</div>
				<div id="sltCertification"  class="searchbox">
						<table style="background-color: #3BAAE3;width: 100%;min-width:1200px;" cellpadding = "0" cellspacing = "0">
							<tr>
								<td align="right">检定证号：</td>
								<td><input type="text" id="txtCertificateCode"></td>
								<td align="right">检定单位：</td>
								<td><input type="text" id="txtVerificationUnit"></td>
								<td align="right">检定日期&nbsp;从：</td>
								<td>
									<input type="text" id="certificateDate" name="certificateDate" class="date" readonly="readonly" value="<c:out value=''/>"/>								
								</td>
								<td align="right">到：</td>
								<td>
									<input type="text" id="toCertificateDate" name="toCertificateDate" class="date" readonly="readonly" value="<c:out value=''/>"/>
								</td>
								<td>
								<td>
									<button onclick="ajaxFindCertificationSearchList()" style="width:75px;">查询</button>
								</td>
							</tr>
							<tr>
								<td align="right">器具编号：</td>
								<td><input type="text" id="txtControlId"></td>
								<td align="right">型号/规格：</td>
								<td><input type="text" id="txtStandard"></td>
								<td align="right">过期日期&nbsp;从：</td>
								<td>
									<input type="text" id="expireDate" name="expireDate" class="date" readonly="readonly" value="<c:out value=''/>"/>								
								</td>
								<td align="right">到：</td>
								<td>
									<input type="text" id="toExpireDate" name="toExpireDate" class="date" readonly="readonly" value="<c:out value=''/>"/>
								</td>
								<td>
								<td>
									<button onclick="clearInput('#sltCertification')" style="width:75px;">重置</button>
								</td>
							</tr>
						</table>
				</div>
				<form id="fmCertification" method="post"><input type="hidden" id="certificationId" name="certificationId"></form>
				<div id="listcertificationBox" style="width: 100%;"></div>
			</div>
		</div>
		<%@ include file="../../common/footer.jsp"%>
	</div>
</body>
<script>
	$("#certificateDate").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#toCertificateDate" ).datepicker( "option", "minDate", selectedDate );
	      }
	    });
	$("#toCertificateDate").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#certificateDate" ).datepicker( "option", "maxDate", selectedDate );
	      }
	    });
	$("#expireDate").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#toExpireDate" ).datepicker( "option", "minDate", selectedDate );
	      }
	    });
	$("#toExpireDate").datepicker({
	      changeMonth: true,
	      numberOfMonths: 1,
	      onClose: function( selectedDate ) {
	        $( "#expireDate" ).datepicker( "option", "maxDate", selectedDate );
	      }
	    });
	$(".date").datepicker({regional:"zh-CN"});
</script>
</html>